package org.luxor.cloud.portal.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.luxor.commons.core.validator.group.UpdateGroup;


/**
 * 租户详情
 *
 * @author administrator @date 2020-10-29 14:27:54
 */
@Data
@TableName("tb_tenant_details")
@ApiModel(description = "租户详情")
public class TenantDetailsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.ID_WORKER)
	@ApiModelProperty(value = "主键Id")
	@JSONField(serializeUsing = ToStringSerializer.class)
	@NotNull(message = "tenantId，不能为空", groups = UpdateGroup.class)
	private Long tenantId;

	@ApiModelProperty(value = "企业名称")
	@NotBlank(message = "companyName，不能为空")
	private String companyName;

	@ApiModelProperty(value = "行业类型")
	private String industryType;

	@ApiModelProperty(value = "人员规模")
	private String staffSize;

	@ApiModelProperty(value = "企业logo")
	private Byte[] companyLogo;

	@ApiModelProperty(value = "联系地址")
	private String location;

	@ApiModelProperty(value = "公司网址")
	private String website;

	@ApiModelProperty(value = "管理员姓名")
	@NotBlank(message = "managerName，不能为空")
	private String managerName;

	@ApiModelProperty(value = "管理员手机号")
	@NotBlank(message = "managerMobile，不能为空")
	private String managerMobile;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

}
